package com.chuangjiangx.member.basic.ddd.dal.mapper;

import com.chuangjiangx.member.basic.ddd.dal.dto.MerchantInfo;
import com.chuangjiangx.member.basic.ddd.dal.dto.MerchantPayConfig;
import com.chuangjiangx.member.basic.ddd.dal.dto.StoreList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 查询商户信息
 * Created by YangKuo on 2017/11/22.
 */
public interface MerchantInfoDalMapper {

    /**
     * 根据id查询商户信息
     *
     * @param merchantId
     * @return
     */
    MerchantInfo queryMerchantInfo(@Param("merchantId") Long merchantId);

    Integer countMerchantComponent(Long merchantComponentId);
    MerchantPayConfig selectPaymentConfig(@Param("payEntry") Integer payEntry, @Param("payType") Integer payType, @Param("merchantId") Long merchantId);

    List<StoreList> selectStoreListByMerchantId(Long merchantId);

    List<StoreList> queryStoreListByEnableAndMerchantId(Long merchantId);

}
